package com.kefu.notice.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kefu.common.controller.AbstractBaseController;
import com.kefu.common.result.Result;
import com.kefu.common.result.ResultGenerator;
import com.kefu.notice.model.BossNoticeInfo;
import com.kefu.notice.service.BossNoticeInfoService;
import com.kefu.notice.vo.BossNoticeInfoOpenSearchVo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(tags = "")
@RequestMapping("open/notice/info")
public class BossNoticeInfoOpenController  extends AbstractBaseController {

	@Autowired
	private BossNoticeInfoService bossNoticeInfoService;
	 
	@PostMapping("/list")
    @ApiOperation(value = "查询")
    public Result<Page<BossNoticeInfo>> list(@Validated @RequestBody BossNoticeInfoOpenSearchVo search) {    

        Page<BossNoticeInfo> page = bossNoticeInfoService.searchLambdaPage(search);
        return ResultGenerator.genSuccessResult(page);
    }
}
